package sv.gob.mh.dgii.dao.cc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.hibernate.jdbc.Work;
import org.springframework.stereotype.Repository;
import sv.gob.mh.dgii.dao.hibernate.HibernateDaoImpl;
import sv.gob.mh.dgii.jdbc.JdbcHelper;
import sv.gob.mh.dgii.model.DeCtrlConsulta;

@Repository
public class DeCtrlConsultaDaoImpl extends HibernateDaoImpl implements DeCtrlConsultaDAO {

    private static final String SEQ_NAME = "DE_CTRL_CONSULTA";
    public static final String NIT = "nit";
    public static final String _MESTADO = "MEstado";
    public static final String _CUSUARIO = "CUsuario";
    public static final String IP_USUARIO = "ipUsuario";
    public static final String _CDESTINO = "CDestino";
    public static final String _MNOTIFICADO = "MNotificado";
    public static final String _BIMPRESO = "BImpreso";
    public static final String _BALMACENADO = "BAlmacenado";
    public static final String _IUTILIDAD = "IUtilidad";
    public static final String _NDUI_AUTORIZ = "NDuiAutoriz";
    public static final String _SNOMBRE_AUTORIZ = "SNombreAutoriz";
    private static final Log log = LogFactory.getLog(DeCtrlConsultaDaoImpl.class);

    public DeCtrlConsultaDaoImpl() {
        super(DeCtrlConsulta.class);
    }

    public Long getNextSequence() {
        return super.getNextSequence(SEQ_NAME);
    }
}